#ifndef __DRIVER_TOUCH_H
#define __DRIVER_TOUCH_H

#include "board.h"

#define GT91x_RST_PIN           GET_PIN(G, 10)
#define GT91x_IRQ_PIN           GET_PIN(G, 13)

#define GTP_ADDR_LENGTH         (2)
#define GT91x_MAX_TOUCH         (5)

#define GT91x_I2C_ADDRESS       (0x14)//(0x5D)//

#define GT91x_RESET_REG         (0x8040)
#define GT91x_CONFIG_REG        (0x8047)
#define GT91x_INFO_REG          (0x8047)
#define GT9XX_PROD_ID_REG       (0x8140)
#define GT9XX_FW_VER_REG        (0x8144)
#define GT91x_STATUS_REG        (0x814E)

#define GT91x_POINT1_REG        (0x814F)
#define GT91x_POINT2_REG        (0x8157)
#define GT91x_POINT3_REG        (0x815F)
#define GT91x_POINT4_REG        (0x8167)
#define GT91x_POINT5_REG        (0x816F)

#define GT91x_CHECK_SUM         (0x80FF)

#define TOUCH_I2C_DEVICE_NAME   "i2c0"

int rt_hw_iic_touch(void);

#endif // __DRIVER_TOUCH_H
